package com.lulin.mall.product.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.lulin.common.utils.PageUtils;
import com.lulin.mall.product.entity.CategoryEntity;
import com.lulin.mall.product.vo.Catalog2VO;

import java.util.List;
import java.util.Map;

/**
 * 商品三级分类
 *
 * @author lulin
 * @email 2032327049@qq.com
 * @date 2022-09-21 14:25:13
 */
public interface CategoryService extends IService<CategoryEntity> {

    PageUtils queryPage(Map<String, Object> params);

    List<CategoryEntity> queryPageWithTree(Map<String, Object> params);

    void removeCategoryByIds(List<Long> asList);

    Long[] findCateLogPath(Long catelogId);

    void updateDetail(CategoryEntity category);

    /**
     * 查询出所有的一级分类
     */
    List<CategoryEntity> getLeve1Category();

    /**
     * 查询出所有的二级和三级分类的数据
     */
    Map<String, List<Catalog2VO>> getCatelog2JSON();
}

